import request from '../utils/Request'

export function apiGetShopInfo(id) {
  return request.fetch({
    url: 'shop/info/' + id,
    method: 'GET',
  })
}

export function findShopByShopId(shopId) {
  return request.fetch({
    url: 'shop/findShopByShopId/' + shopId,
    method: 'get',
  })
}

export function saveOne(data) {
  return request.fetch({
    url: 'shop',
    method: 'post',
    data: { entity: data },
  })
}

export function saveShopClerk(data) {
  return request.fetch({
    url: 'shop/saveShopClerk',
    method: 'post',
    data: { entity: data },
  })
}

export function getDetail(id) {
  return request.fetch({
    url: 'shop/findDetail/' + id,
    method: 'get',
  })
}
